package bavaria.hightech.conditions;

import java.util.Calendar;

public class FixedDepositConditions extends Conditions {
	
	public enum ContractPeriod{
		ONE_MONTH(1),THREE_MONTH(2),ONE_YEAR(12);
		
		private int period;
		
		private ContractPeriod(int period) {
			this.period = period;
		}
		
		public int getPeriod(){
			return period;
		}
	}
	
	private ContractPeriod contractPeriod;
	private int interest;
	
	public FixedDepositConditions(ContractPeriod contractPeriod, int interest) {
		this.contractPeriod = contractPeriod;
		this.interest = interest;
	}

	public int getContractPeriod() {
		return contractPeriod.getPeriod();
	}

	public int getInterest() {
		return interest;
	}
	

    public String toString(){
    	return "(laufzeit: " +contractPeriod +",zinssatz: " +interest +")";
    }
    
   
    }
	
	
	
	


